<?php
include_once 'confing.php';
$username=$_POST['username'];
$content=$_POST['content'];
$time_at=  time();

$sql = "INSERT INTO wish (
username ,
content ,
time_at
)
VALUES ( 
'$username','$content', '$time_at')";

$result = $conn->query($sql);
if($result===TRUE){
    echo "ok";
}else {
    echo "falure";
}
header("location:index.php");
